Integrand size = 10, antiderivative size = 17 \[ \int \frac {1}{\sqrt {a \sin ^2(x)}} \, dx=-\frac {\text {arctanh}(\cos (x)) \sin (x)}{\sqrt {a \sin ^2(x)}} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3286, 3855} \[ \int \frac {1}{\sqrt {a \sin ^2(x)}} \, dx=-\frac {\sin (x) \text {arctanh}(\cos (x))}{\sqrt {a \sin ^2(x)}} \]
[In]
[Out]
Rule 3286
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {\sin (x) \int \csc (x) \, dx}{\sqrt {a \sin ^2(x)}} \\ & = -\frac {\text {arctanh}(\cos (x)) \sin (x)}{\sqrt {a \sin ^2(x)}} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.76 \[ \int \frac {1}{\sqrt {a \sin ^2(x)}} \, dx=\frac {\left (-\log \left (\cos \left (\frac {x}{2}\right )\right )+\log \left (\sin \left (\frac {x}{2}\right )\right )\right ) \sin (x)}{\sqrt {a \sin ^2(x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(48\) vs. \(2(15)=30\).
Time = 0.72 (sec) , antiderivative size = 49, normalized size of antiderivative = 2.88
method | result | size |
default | \(-\frac {\sin \left (x \right ) \sqrt {a \left (\cos ^{2}\left (x \right )\right )}\, \ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\cos ^{2}\left (x \right )\right )}+2 a}{\sin \left (x \right )}\right )}{\sqrt {a}\, \cos \left (x \right ) \sqrt {a \left (\sin ^{2}\left (x \right )\right )}}\) | \(49\) |
risch | \(-\frac {2 \ln \left ({\mathrm e}^{i x}+1\right ) \sin \left (x \right )}{\sqrt {-a \left ({\mathrm e}^{2 i x}-1\right )^{2} {\mathrm e}^{-2 i x}}}+\frac {2 \ln \left ({\mathrm e}^{i x}-1\right ) \sin \left (x \right )}{\sqrt {-a \left ({\mathrm e}^{2 i x}-1\right )^{2} {\mathrm e}^{-2 i x}}}\) | \(64\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 36 vs. \(2 (15) = 30\).
Time = 0.27 (sec) , antiderivative size = 70, normalized size of antiderivative = 4.12 \[ \int \frac {1}{\sqrt {a \sin ^2(x)}} \, dx=\left [\frac {\sqrt {-a \cos \left (x\right )^{2} + a} \log \left (-\frac {\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1}\right )}{2 \, a \sin \left (x\right )}, \frac {\sqrt {-a} \arctan \left (\frac {\sqrt {-a \cos \left (x\right )^{2} + a} \sqrt {-a} \cos \left (x\right )}{a \sin \left (x\right )}\right )}{a}\right ] \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {a \sin ^2(x)}} \, dx=\int \frac {1}{\sqrt {a \sin ^{2}{\left (x \right )}}}\, dx \]
[In]
[Out]
none
Time = 0.46 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.53 \[ \int \frac {1}{\sqrt {a \sin ^2(x)}} \, dx=\frac {\sqrt {-a} {\left (\arctan \left (\sin \left (x\right ), \cos \left (x\right ) + 1\right ) - \arctan \left (\sin \left (x\right ), \cos \left (x\right ) - 1\right )\right )}}{a} \]
[In]
[Out]
none
Time = 0.36 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.88 \[ \int \frac {1}{\sqrt {a \sin ^2(x)}} \, dx=\frac {\log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) \right |}\right )}{\sqrt {a} \mathrm {sgn}\left (\sin \left (x\right )\right )} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\sqrt {a \sin ^2(x)}} \, dx=\int \frac {1}{\sqrt {a\,{\sin \left (x\right )}^2}} \,d x \]
[In]
[Out]